package com.warthur.jfinal.demo.task;

import io.jboot.components.schedule.annotation.EnableDistributedRunnable;
import io.jboot.components.schedule.annotation.FixedDelay;
import lombok.extern.slf4j.Slf4j;

/**
 * @author warthur
 * @date 2019/10/08
 */
@FixedDelay(period = 5, initialDelay = 10)
@EnableDistributedRunnable
@Slf4j
public class MyTask implements Runnable {
    @Override
    public void run() {
        log.info("任务:执行定时任务");
    }
}
